MySQL: Free the results when QSqlQuery::finished() is called
authorDaniel Vrátil <dvratil@kde.org>
Sat, 1 Dec 2018 16:56:41 +0000 (17:56 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 15 Aug 2019 14:15:39 +0000 (15:15 +0100)
commita5f4df8d115f8114a90f8eb0c4fc4ab1dc58bbcb
treea91d773a53a57c337cda29c92904c2e0674d7c0b
parent5d0938e511184e08e2985b1630bfdf2a2720e54b
MySQL: Free the results when QSqlQuery::finished() is called

Calling mysql_stmt_free_result() frees the results of the last
executed query while keeping the prepared statement valid. This
allows one to keep around prepared QSqlQueries without the overhead
of keeping all the results in memory.

Change-Id: I4589e90857cc4e9a6f9612799bfca967a67e2ab2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Gbp-Pq: Name mysql_free_results_when_qsqlquery_finished_is_called.patch
src/plugins/sqldrivers/mysql/qsql_mysql.cpp